package icu.thatyear.main.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author Cjy
 * @since 2024-12-06
 */
@Getter
@Setter
@TableName("tz_prod_prop")
@Schema(name = "TzProdProp", description = "")
public class TzProdProp implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "属性id")
    @TableId(value = "prop_id", type = IdType.AUTO)
    private Long propId;

    @Schema(description = "属性名称")
    @TableField("prop_name")
    private String propName;

    @Schema(description = "ProdPropRule 1:销售属性(规格); 2:参数属性;")
    @TableField("rule")
    private Byte rule;

    @Schema(description = "店铺id")
    @TableField("shop_id")
    private Long shopId;
}
